package service;

import pojo.Book;
import pojo.Page;

import java.util.List;

/**
 * @author Wxt
 * @create 2022-02-09 20:53
 */
public interface BookService {
    void addBook(Book book);
    void deleteBookById(int id);
    void updateBook(Book book);
    Book queryForOneById(int id);
    List<Book> queryAllBooks();
    Page<Book> page(int pageNo,int pageSize);
    Page<Book> pageByPrice(int pageNo,int pageSize,int min,int max);
}
